namespace CPService.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.InformationByUsers",
                c => new
                    {
                        InformationByUserId = c.Int(nullable: false, identity: true),
                        Label = c.String(),
                        Content = c.String(),
                        PositiveVotes = c.Int(nullable: false),
                        NegativeVotes = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.InformationByUserId);
            
            CreateTable(
                "dbo.Parliamentarians",
                c => new
                    {
                        ParliamentarianId = c.Int(nullable: false, identity: true),
                        PositiveOpinions = c.Int(nullable: false),
                        NegativeOpinions = c.Int(nullable: false),
                        Self = c.String(),
                    })
                .PrimaryKey(t => t.ParliamentarianId);
            
            CreateTable(
                "dbo.PoliticGroups",
                c => new
                    {
                        PoliticGroupId = c.Int(nullable: false, identity: true),
                    })
                .PrimaryKey(t => t.PoliticGroupId);
            
            CreateTable(
                "dbo.Votations",
                c => new
                    {
                        VotationId = c.Int(nullable: false, identity: true),
                        Date = c.String(),
                        Vote = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.VotationId);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.Votations");
            DropTable("dbo.PoliticGroups");
            DropTable("dbo.Parliamentarians");
            DropTable("dbo.InformationByUsers");
        }
    }
}
